import axios from '@/utils/http'

// 分页查询地址列表
export function getAddressPage(params: any) {
  return axios({
    url: '/address/getAddressPage',
    method: 'get',
    params: params
  })
}
// 不分页查询地址列表
export function getAddressList(params: any) {
  return axios({
    url: '/address/getAddressList',
    method: 'get',
    params: params
  })
}
// 增加
export function addAddress(params: any) {
  return axios({
    url: '/address/add',
    method: 'post',
    params: params
  })
}
// 修改
export function updAddress(params: any) {
  return axios({
    url: '/address/update',
    method: 'post',
    params: params
  })
}
// 删除
export function delAddress(params: any) {
  return axios({
    url: '/address/del',
    method: 'get',
    params: params
  })
}

// 设为默认
export function updDefault(params: any) {
  return axios({
    url: '/address/updDefault',
    method: 'get',
    params: params
  })
}